<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>

    /*promise.then(()=>{console.log(2)})

    async function test() {
        await promise;
        console.log(2)
    }
    test()*/


    /*var val = setTimeout(()=>{console.log(1)},1000)
    Promise.resolve(val).then(()=>{console.log(2)})*/

    async function test() {
        await setTimeout(()=>{console.log(1)});
        console.log(2)
    }
    test()




</script>
</html>